package com.example.librarymanagersystem.entity;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
public class Borrow {

    private int id;
    @NotBlank(message = "读者ID不能为空")
    private int readerId;
    @NotBlank(message = "图书ID不能为空")
    private int bookId;
    @NotBlank(message = "借阅日期不能为空")
    private Date borrowDate;
    @NotBlank(message = "还书日期不能为空")
    private Date returnDate;
    @NotBlank(message = "借书操作员ID不能为空")
    private int borrowOperatorId;
    @NotBlank(message = "还书操作员ID不能为空")
    private int returnOperatorId;
}
